<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:p="http://primefaces.prime.com.tr/ui">


<ui:composition template="/templates/user/content.xhtml">
	<ui:define name="pageTitle">Publish Property</ui:define>
	<ui:define name="body">
		<div class="container_24">
			<div class="wrapper">
				<ui:include src="/templates/user/sidebar_for_user.xhtml" />
				<div class="grid_17">
					<div class="inside">
						<h:panelGroup rendered="#{addPropertyBean.publishability}">
							<h:form id="common-form" styleClass="table-box">
								<article> <header>
								<h2>Post New Property</h2>
								</header> <p:growl id="messages" showDetail="true"></p:growl> <ui:include
									src="/templates/user_insert_property/add_basic_info.xhtml" />
								<h3>Property Images</h3>
								<ui:include
									src="/templates/user_insert_property/add_property_images.xhtml" />
								<h3>Property Information:</h3>
								<h:panelGroup id="prop_type_select">
									<ui:include
										src="/templates/user_insert_property/add_property_for_rent.xhtml"></ui:include>
									<ui:include
										src="/templates/user_insert_property/add_property_for_sale.xhtml"></ui:include>
									<ui:include
										src="/templates/user_insert_property/add_room_for_rent.xhtml"></ui:include>
								</h:panelGroup> </article>
								<a4j:jsFunction name="deleteImage"
									action="#{mPropertyImage.deleteTempImages}" id="ajax_delete">
									<a4j:param name="deleteLink"
										assignTo="#{mPropertyImage.propImageTempDeleteLink}" />
								</a4j:jsFunction>

								<a4j:jsFunction name="changeProp" id="change_prop_ajax"
									render="prop_type_select">
									<a4j:param name="prop_type"
										assignTo="#{mProperty.propselectedtype}" />
								</a4j:jsFunction>
							</h:form>

						</h:panelGroup>
						<h:panelGroup rendered="#{!addPropertyBean.publishability}">
							<h:form  styleClass="table-box">
								<article> <header>
								<h2>Property Management</h2>
								</header>
								<h:outputLabel style="color:#FF0000" value="Unverified user can only publish up to 1 property" />
								
								 </article>
							</h:form>
						</h:panelGroup>
					</div>
				</div>
			</div>
		</div>
	</ui:define>
</ui:composition>
</html>
